package com.ms.game.itembox.db;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.ms.game.itembox.NameChangeWay;
import com.xpec.c4.db.model.log.basic.BasicLogModel;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Table(name = ChangeNameLogModel.TABLENAME)
public class ChangeNameLogModel extends BasicLogModel{

	private static final long serialVersionUID = -4819441254064372275L;
	
	public final static String TABLENAME = "change_name_log";
	
	private String changeBefore;
	
	private String changeAfter;
	
	private String playerId;
	
	private String orderId;
	
	private String zoneId;
	
	private int changeWay;
	
	private NameChangeWay changeWayDesc;

	public String getChangeBefore() {
		return changeBefore;
	}

	public void setChangeBefore(String changeBefore) {
		this.changeBefore = changeBefore;
	}

	public String getChangeAfter() {
		return changeAfter;
	}

	public void setChangeAfter(String changeAfter) {
		this.changeAfter = changeAfter;
	}

	public String getPlayerId() {
		return playerId;
	}

	public void setPlayerId(String playerId) {
		this.playerId = playerId;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getZoneId() {
		return zoneId;
	}

	public void setZoneId(String zoneId) {
		this.zoneId = zoneId;
	}

	public int getChangeWay() {
		return changeWay;
	}

	public void setChangeWay(int changeWay) {
		this.changeWay = changeWay;
	}

	@Enumerated(EnumType.STRING)
	public NameChangeWay getChangeWayDesc() {
		return changeWayDesc;
	}

	public void setChangeWayDesc(NameChangeWay changeWayDesc) {
		this.changeWayDesc = changeWayDesc;
	}


}
